{#await currentUserIdentity} Loading ... {:then identity} {@const isOwner = identity && identity.name === data.username} {#if isOwner}

Back to Profile (editMode = !editMode)}> {editMode ? 'Disable' : 'Enable'} Edit Mode screenshot()}>Download Dark Mode Transparent Background

{/if} {#if editMode && isOwner}

Delete mode is enabled. Click on an image to delete it. There is no confirmation, so be careful!

{#if error}

{error}

{/if}

Add Badge

{/if}
{#if badges === null} {@html nbsp('Loading ...')} {:else if badges.length === 0} {@html nbsp('No badges found for this user.')} {:else} {#each badges as badge} {#if editMode} removeBadge(badge)} id={`badge-${badge.id}`}> {badge.description} {:else} {badge.description} {/if} {/each} {/if}
{/await}